﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	IML - Give it a try!
</asp:Content>

<asp:Content ID="tryContent" ContentPlaceHolderID="MainContent" runat="server">
    <%= Html.ValidationSummary(true, "Image creation was unsuccessful. Please correct the errors and try again.") %>
    <h2><%= Html.Encode(ViewData["Message"]) %></h2>
    <% using (Html.BeginForm("try", "home")) { %>
    <p>
        If this page isn't working or if you prefer to run a local version you can download a <a href="/Content/IML.exe" atl="Download IML">windows executable version</a>.<br />
        or grab the source code and compile it yourself from svn @ <a href="http://code.google.com/p/iml/source/checkout" alt="Grab the IML source code">Google Code</a>.
    </p>
    <p><%=Html.TextArea("source", "Enter source text", 20, 90, null)%></p>
    <p><input type="submit" value="Submit" /></p>
    <% } %>
    <% if(bool.Parse(ViewData["true"].ToString() )){%>
    <img src="/Home/Image/" alt="IML Image"/>
    <% } %>
</asp:Content>